package com.example.howard.xiao7music.ui.Activity;

import android.app.Activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.howard.xiao7music.R;
import com.example.howard.xiao7music.ui.BottomPlayer;

public class PlayActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_play);
    }

    @Override
    protected void onStart() {
        super.onStart();
        FragmentManager fragmentManager=getFragmentManager();
        FragmentTransaction transaction=fragmentManager.beginTransaction();

        BottomPlayer bottomplayer=new BottomPlayer();
        transaction.add(R.id.bottomplaybar,bottomplayer);

        transaction.commit();
    }
}
